﻿
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using nERP.Model.Bas;
using nERP.Model;

namespace nERP.ViewModel.Bas.GoodsVMs
{
    public partial class GoodsTemplateVM : BaseTemplateVM
    {
        
        [Display(Name = "_Model._Goods._GoodsCode")]
        public ExcelPropety GoodsCode_Excel = ExcelPropety.CreateProperty<Goods>(x => x.GoodsCode);
        [Display(Name = "_Model._Goods._GoodsName")]
        public ExcelPropety GoodsName_Excel = ExcelPropety.CreateProperty<Goods>(x => x.GoodsName);
        [Display(Name = "_Model._Goods._GoodsSpec")]
        public ExcelPropety GoodsSpec_Excel = ExcelPropety.CreateProperty<Goods>(x => x.GoodsSpec);
        [Display(Name = "_Model._Goods._GoodsType")]
        public ExcelPropety GoodsType_Excel = ExcelPropety.CreateProperty<Goods>(x => x.GoodsTypeId);
        [Display(Name = "_Model._Goods._GoodsUnit")]
        public ExcelPropety GoodsUnit_Excel = ExcelPropety.CreateProperty<Goods>(x => x.GoodsUnitId);
        [Display(Name = "_Model._Goods._RestockingPrice")]
        public ExcelPropety RestockingPrice_Excel = ExcelPropety.CreateProperty<Goods>(x => x.RestockingPrice);
        [Display(Name = "_Model._Goods._RetailPrice")]
        public ExcelPropety RetailPrice_Excel = ExcelPropety.CreateProperty<Goods>(x => x.RetailPrice);
        [Display(Name = "_Model._Goods._WholesalePrice")]
        public ExcelPropety WholesalePrice_Excel = ExcelPropety.CreateProperty<Goods>(x => x.WholesalePrice);
        [Display(Name = "_Model._Goods._SafetyStock")]
        public ExcelPropety SafetyStock_Excel = ExcelPropety.CreateProperty<Goods>(x => x.SafetyStock);
        [Display(Name = "_Model._Goods._Remark")]
        public ExcelPropety Remark_Excel = ExcelPropety.CreateProperty<Goods>(x => x.Remark);
        [Display(Name = "_Model._Goods._Stock")]
        public ExcelPropety Stock_Excel = ExcelPropety.CreateProperty<Goods>(x => x.Stock);
        //[Display(Name = "_Model._Goods._CreateTime")]
        //public ExcelPropety CreateTime_Excel = ExcelPropety.CreateProperty<Goods>(x => x.CreateTime, true);
        //[Display(Name = "_Model._Goods._UpdateTime")]
        //public ExcelPropety UpdateTime_Excel = ExcelPropety.CreateProperty<Goods>(x => x.UpdateTime, true);
        //[Display(Name = "_Model._Goods._CreateBy")]
        //public ExcelPropety CreateBy_Excel = ExcelPropety.CreateProperty<Goods>(x => x.CreateBy);
        //[Display(Name = "_Model._Goods._UpdateBy")]
        //public ExcelPropety UpdateBy_Excel = ExcelPropety.CreateProperty<Goods>(x => x.UpdateBy);
        //[Display(Name = "_Model._Goods._IsValid")]
        //public ExcelPropety IsValid_Excel = ExcelPropety.CreateProperty<Goods>(x => x.IsValid);
        //[Display(Name = "_Model._Goods._TenantCode")]
        //public ExcelPropety TenantCode_Excel = ExcelPropety.CreateProperty<Goods>(x => x.TenantCode);

	    protected override void InitVM()
        {
            

        }

    }

    public class GoodsImportVM : BaseImportVM<GoodsTemplateVM, Goods>
    {
            //import

    }

}